/**
 * Created by zhang_j on 2020/7/8
 */
public class 跳水板 {

    public int[] divingBoard(int shorter, int longer, int k) {
        int[] result = new int[k+1];
        if(k == 0){
            int[] res = {};
            return res;
        }

        int diff = longer - shorter;
        if(diff == 0){
            int[] res = {shorter*k};
            return res;
        }
        int kShorter = k * shorter;
        for(int i = 0;i < k+1;i++){
            result[i] = kShorter + i * diff;
        }
        return result;
    }
}
